package com.example.business_oa.service;


import com.example.comment_oa.dubbo.FuLiLiuChengJuJueDubbo;
import com.example.comment_oa.pojos_vo.flowableVo.taskVo;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class JuJueFuLiLiuChengService {

    @DubboReference(version = "1.0.0")
    FuLiLiuChengJuJueDubbo fuLiLiuChengJuJueDubbo;

    @GlobalTransactional(timeoutMills = 600000)
    public void jujuefuliliucheng(taskVo taskVo){
        fuLiLiuChengJuJueDubbo.fuliliuchengjujue(taskVo);
    }

    @GlobalTransactional(timeoutMills = 600000)
    public void tongyifuliliucheng(taskVo taskVo){
        fuLiLiuChengJuJueDubbo.fuliliuchengtongyi(taskVo);
    }
}
